package Teacher_And_Stdent;

public class Test_Teacher_And_Stdent {
    public static void main(String[] args) {

        Human Bailey=new Student();
        Human David=new Teacher();

        David.speak();
        Bailey.speak();

        David.setName("David");
        String name=David.getName();
        System.out.println(name);

        Teacher c=(Teacher) David;
        c.skill();
    }
}
